<style>
	/* sub-popmenus*/
	/*
	.popmenu ul {
	padding: 0px;
	margin: 0px;
	display: block;
	display: inline;
	position: absolute;
	background:url(<?php echo Yii::app()->baseUrl."/images/webgl/head/StripePattern.png"?>) repeat;

	}*/
	.popmenu ul li {
	display: block;
	margin: 5px 2px;
	padding: 5px 0px;
	cursor: pointer;
	border-top: dotted 1px #606060;
	list-style-type: none;
	color: #000000;
	}
	.popmenu ul li:first-child {
	border-top: none;
	}
	.popmenu ul li a {
	display: block;
	color: #000000;

	}
	.popmenu ul li a:hover {
	color: #990000;
	}

	.opmenu,.wallmenu{
	width:100%;
	}
</style>
<script>
$(function() {
		
console.warn(<?php echo json_encode($hostInfo)?>);
$(".dockitem").fancybox();

		$("#move").click(function(){
	      $('canvas').on('mousemove', function(event) {
	                var mouse2D = new THREE.Vector3( 0, 0, 0.5 );
	                mouse2D.x = (event.clientX - RoomUtil.OFFSET_SIZE.x)/ ($('canvas').width()) * 2 - 1;
	                mouse2D.y = -((event.clientY - RoomUtil.OFFSET_SIZE.y) / ($('canvas').height())) * 2 + 1;
	                
	                build.moveFacility(mouse2D);
	                
	                $('canvas').off('click');
	                $('canvas').click(function(event){
	                  $('canvas').off('mousemove');
	                  $('canvas').on('click',function(event){
	                  build.getFacility(event);
	                  });
	                });
	         });
	       });
		$("#remove").click(function(){
			build.removeFacility();
			$('.facilityPanel').empty();
		});
		// $("#replace").click(function(){
			// // alert('replace');
		// });
});
</script>
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app() -> request -> baseUrl;?>/css/colorpicker2/farbtastic.css" />
<div class="panelbar">
	物体面板
</div>
<div class="popmenu" >
	<ul class="opmenu">
		<li id="rotate" class='tool'>
			<input type='button' value='旋转'></input>
		</li>
		<li  id="move" class='tool'>
			移动
		</li>
<!-- 		<li  id="replace" class='tool'>
			<?php echo CHtml::link('替换',array('webgl/facility/','gTypeId'=>"0701",'pageNo'=>1),array('class'=>"dockitem"))?>
		</li> -->
		<li  id="remove" class='tool'>
			删除
		</li>
    <li id="goodsName"class='goodsName'>
      <?php echo $hostInfo -> name;?>
    </li>
    <li id="description" class='description'>
      <?php echo $hostInfo -> description;?>
    </li>
	</ul>

</div>